﻿using System;
using System.Linq;

namespace Se.Framework.Common.ObjectRegistrySupport
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = false, AllowMultiple = false)]
    public class ObjectLifetimeAttribute : Attribute
    {
        private ObjectLifetimeType type = ObjectLifetimeType.EveryCall;

        public ObjectLifetimeType Type
        {
            get
            {
                return this.type;
            }
            set
            {
                this.type = value;
            }
        }

        public Type TypeTo { get; set; }
    }
}
